package slices
{
	
	public class InvokeFunction extends TimeSlice
	{
		public var func:Function;
		public var args:Array;		
		
		public function InvokeFunction(func:Function, args:Array=null)
		{
			super();
			this.func = func;
			this.args = args;
			this.logLevel = 0;
		}
		
		override public function onStart():void {
			func.apply(null, args);
			isDone = true;
		}
	}
}